package resturant;


public class MenuItem implements Comparable<MenuItem> 
{

	private String name;
	private double price ;
	private String category ;
	
	
	public MenuItem(String _name, double _price, String _category)
	{
		
		setName(_name);
		setPrice(_price);
		setCategory(_category);
	}
	
	public void setName (String t) {  
		name = t;  
     }  

     public String getName() {  
     return name;  
     } 
     
     public void setPrice (double t) {  
    	 price = t;  
      }  

     public double getPrice() {  
      return price;  
      } 
      
      public void setCategory (String t) {  
    	  category = t;  
       }  

       public String getCategory() {  
       return category;  
       } 

       public int compareTo(MenuItem other) {
   		return name.compareTo(other.name);
   	}
   	

}
